{% extends "mall/base.html" %}

{% block title %}
{% endblock %}

{% block css %}
    <link rel="stylesheet" href="{{ STATIC_URL }}/static/css/pad_mall/address.css?v={{ version_code }}">
{% endblock %}

{% block header %}
    {% include 'component/pad-suspend.html' %}
{% endblock %}

{% block content %}
    <input type="hidden" name="device_id" value="{{ device_id }}">
    <div class="common-wrapper ">
        <div class="address02">
            <div class="editInoutAll">
                <div class="address-big bdb-1px">
                    <div class="fixed-bottom" id="fixed-bottom" style="width: 100%;">
                        <div class="col02" id="selectAddressBtn" region-data="15,1213,3411,52667">
                            <div class="s-item bdb-1px" id="divAddress">
                                <div class="sitem-l sitem-pad add-box">
                                    <div class="sattr-add">所在地区:
                                    </div>
                                    <div class="svalue">
                                        {% if address.sdef_address_province and address.sdef_address_city and address.sdef_address_county %}
                                            <input type="text"
                                                   value="{{ address.sdef_address_province }} {{ address.sdef_address_city }} {{ address.sdef_address_county }}"
                                                   id="txtProvince" readonly="readonly">
                                        {% else %}
                                            <input type="text" placeholder="点此选择地区" id="txtProvince"
                                                   readonly="readonly">
                                        {% endif %}

                                    </div>
                                </div>
                                {#                                <span class="s-point"></span>#}
                            </div>
                        </div>
                        <div class="s-item bdb-1px change-padd">
                            <div class="sitem-l sitem-pad change-wid">
                                <div class="sattr-add change-padding">详细地址:</div>
                                <div class="svalue w65 change-po">
                                    <textarea class="textauto change-sty not-over-see"
                                              id="txtAddress" placeholder="请输入街道、楼牌号等" maxlength="150" rows="3"
                                              cols="80"
                                              style="overflow: hidden;height: 50px;line-height: 35px;padding: 10px 0;">{{ address.sdef_address_detail }}</textarea>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="fixed-top">
                    <div class="s-item bdb-1px  not-over-see">
                        <div class="sitem-l sitem-pad">
                            <div class="sattr-add">收货人:</div>
                            <div class="svalue">
                                <input type="text" id="txtName" value="{{ address.sdef_address_name }}"
                                       placeholder="请输入收货人姓名" class="ad-name">
                            </div>
                        </div>
                    </div>

                    <div class="s-item  not-over-see">
                        <div class="sitem-l sitem-pad">
                            <div class="sattr-add">手机号码:</div>
                            <div id="mobileInputDiv" class="svalue">
                                <input type="tel" id="txtPhone" placeholder="请输入手机号"
                                       value="{{ address.sdef_address_phone }}" class="ad-mobile">
                            </div>
                        </div>

                    </div>

                </div>


            </div>
            {#            <div class="s-item bdb-1px set-default" style="display: block;">#}
            {#                <div class="sitem-m sitem-pad change-wp">#}
            {#                    <div class="sattr change-fl">设为默认地址</div>#}
            {#                    <span class="pay-attention-address">注：每次下单时会使用该地址</span>#}
            {#                </div>#}
            {#                <div class="myswitch"></div>#}
            {#            </div>#}
            <div style="height: 100px;"></div>
        </div>
    </div>
    <div class="check-btn-total" id="btnConfirm">
        <a href="javascript:void(0);" class="check-btn-grey check-btn-red">保存并返回上一页</a>
    </div>
{% endblock %}

{% block footer %}
{% endblock %}

{% block js %}
    <script src="{{ STATIC_URL }}/static/lib/jqweui/city-picker.js?v={{ version_code }}"></script>
    <script src="static/lib/city-picker/city-picker.data.js?v={{ version_code }}"></script>
    <script src="static/lib/city-picker/city-picker.js?v={{ version_code }}"></script>
    <script src="{{ STATIC_URL }}/static/js/pad_mall/address.js?v={{ version_code }}"></script>
{% endblock %}
